import pandas as pd
import openpyxl
student = pd.read_excel('../grades.xlsx', sheet_name='Sheet1')
temp = student[["score1","score2","score3"]]
student["total"] = temp.sum(axis=1)
student["avg"] = temp.mean(axis=1)
print(student)

col_mean = student[["score1","score2","score3","total","avg"]].mean()
col_mean["Name"]="Summary"
student = student.append(col_mean,ignore_index=True)
student[["score1","score2","score3","total","avg"]] = student[["score1","score2","score3","total","avg"]]
print(student)
s